package org.example.service.impl;

import org.example.entity.Answer;
import org.example.mapper.AnswerMapper;
import org.example.service.AnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName AnswerServiceImpl
 * @Description TODO
 * @Author yuezhijie
 * @Date 2025年08月16日 10:27
 * @Version 1.0
 */
@Service
public class AnswerServiceImpl implements AnswerService {
    @Autowired
    private AnswerMapper answerMapper;

    @Override
    public List<Answer> selectAll(int id) {
        List<Answer> answers = answerMapper.selectAll(id);
        return answers;
    }
}
